package com.guazai.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guazai.common.pojo.InterfaceLog;
import com.guazai.project.mapper.InterfaceLogMapper;
import com.guazai.project.service.InterfaceLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author yiyan
* @description 针对表【interface_log】的数据库操作Service实现
* @createDate 2024-08-17 17:27:54
*/
@Service
public class InterfaceLogServiceImpl extends ServiceImpl<InterfaceLogMapper, InterfaceLog>
    implements InterfaceLogService {

    @Resource
    InterfaceLogMapper interfaceLogMapper;

    @Override
    public Integer getInterfaceInfoAverageCost() {
        Integer cost = interfaceLogMapper.getInterfaceInfoAverageCost();
        if (cost == null) {
            cost = 0;
        }
        return cost;
    }
}




